package com.nb.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;


@Data
public class UpdateUserDTO {
    @NotNull(message = "用户ID不能为空")
    private Long id;
    private String username;
    private String password;
    @Email(message = "邮箱格式不正确")
    private String email;
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;
    private Long deptId;
    private String realName;
    private Integer status; // 0-禁用, 1-启用
    private Long[] roleIds;
    private String idCard;
}